﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="register.ascx.cs" Inherits="UserControls_register" %>
<style type="text/css">


        .style1
        {
            width: 70px;
        }
    </style>

<div>
    <table style="width:100%;">
        <tr>
            <td class="style1">
                用户名</td>
            <td>
                <asp:TextBox ID="useridTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="useridRequiredFieldValidator" runat="server" 
                    ControlToValidate="useridTextBox" Display="Dynamic" ErrorMessage="请输入用户名"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                密码</td>
            <td>
                <asp:TextBox ID="passwordTextBox" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="passwordRequiredFieldValidator" runat="server" 
                    ControlToValidate="passwordTextBox" Display="Dynamic" ErrorMessage="请输入密码"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                密码确认</td>
            <td>
                <asp:TextBox ID="confirmTextBox" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="confirmRequiredFieldValidator" runat="server" 
                    ControlToValidate="confirmTextBox" Display="Dynamic" ErrorMessage="再次确认密码"></asp:RequiredFieldValidator>
                <asp:CompareValidator ID="confirmCompareValidator" runat="server" 
                    ControlToCompare="passwordTextBox" ControlToValidate="confirmTextBox" 
                    Display="Dynamic" ErrorMessage="密码无法确认.请再次输入"></asp:CompareValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                邮箱地址</td>
            <td>
                <asp:TextBox ID="emailTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="emailRequiredFieldValidator" runat="server" 
                    ControlToValidate="emailTextBox" Display="Dynamic" ErrorMessage="请输入邮箱地址"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="emailRegularExpressionValidator" 
                    runat="server" ControlToValidate="emailTextBox" Display="Dynamic" 
                    ErrorMessage="无效E-Mail格式" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                联系电话</td>
            <td>
                <asp:TextBox ID="phoneTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="useridRequiredFieldValidator0" runat="server" 
                    ControlToValidate="phoneTextBox" Display="Dynamic" ErrorMessage="请输入联系电话"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="emailRegularExpressionValidator0" 
                    runat="server" ControlToValidate="phoneTextBox" Display="Dynamic" 
                    ErrorMessage="无效电话格式" ValidationExpression="(\d{11})|(\(\d{3}\)|\d{3}-)?\d{8}"></asp:RegularExpressionValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                联系地址</td>
            <td>
                <asp:TextBox ID="addressTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="addressRequiredFieldValidator" runat="server" 
                    ControlToValidate="addressTextBox" ErrorMessage="请输入地址"></asp:RequiredFieldValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                邮编编码</td>
            <td>
                <asp:TextBox ID="postcodeTextBox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="useridRequiredFieldValidator1" runat="server" 
                    ControlToValidate="postcodeTextBox" Display="Dynamic" ErrorMessage="请输入邮政编码"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="emailRegularExpressionValidator1" 
                    runat="server" ControlToValidate="postcodeTextBox" Display="Dynamic" 
                    ErrorMessage="无效邮政编码格式" ValidationExpression="\d{6}"></asp:RegularExpressionValidator>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                备注</td>
            <td>
                <asp:TextBox ID="remarkTextBox" runat="server" Width="260px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <br />
    <br />
    <asp:Button ID="submitButton" runat="server" onclick="submitButton_Click" 
        Text="确认" />
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="cancelButton" runat="server" onclick="cancelButton_Click" 
        Text="取消" />
    <br />
    <br />
</div>
